package kz.edu.sdu.atm.models;

import java.util.HashMap;
import java.util.Map;

public class Request {
	private String username;
	private String password;
	private OperationType operation;
	private Map<String, String> map = new HashMap<String, String>();

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public OperationType getOperation() {
		return operation;
	}

	public void setOperation(OperationType operation) {
		this.operation = operation;
	}

	public Map<String, String> getMap() {
		return map;
	}

	public void setMap(Map<String, String> map) {
		this.map = map;
	}

	@Override
	public String toString() {
		return String.format("%s:%s %s %s", getUsername(), getPassword(),
				getOperation().toString(), getMap().toString());
	}

}
